<?php 
/* SVN FILE: $Id$ */
/* Nivele Test cases generated on: 2009-04-18 16:04:35 : 1240081535*/
App::import('Model', 'Nivele');

class NiveleTestCase extends CakeTestCase {
	var $Nivele = null;
	var $fixtures = array('app.nivele', 'app.partido');

	function startTest() {
		$this->Nivele =& ClassRegistry::init('Nivele');
	}

	function testNiveleInstance() {
		$this->assertTrue(is_a($this->Nivele, 'Nivele'));
	}

	function testNiveleFind() {
		$this->Nivele->recursive = -1;
		$results = $this->Nivele->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Nivele' => array(
			'nivel'  => 1,
			'nombre'  => 'Lorem ipsum dolor sit amet',
			'valor'  => 1
			));
		$this->assertEqual($results, $expected);
	}
}
?>